package com.soso.tg.xxx.service.impl;

import java.io.File;
import java.util.Date;

import javax.servlet.ServletRequest;

import org.mortbay.jetty.Request;

import com.caucho.hessian.server.HessianServlet;
import com.caucho.services.server.ServiceContext;
import com.soso.tg.xxx.service.UserService;
import com.soso.tg.xxx.vo.User;
public class UserServiceImpl extends HessianServlet implements UserService {
 private static final long serialVersionUID = 1L;
 public User getUser(String userName) {
  User user = new User(userName,"CHINA");

  return user;
 }
 
 public File getUserFile(File file) {
	 if(file.exists()){
		 System.out.println(file.getName()+" "+file.getPath());
		 
		 file.setLastModified(System.currentTimeMillis()-324000);
	 }else{
		 file.setLastModified(System.currentTimeMillis()-648000);
	 }
	 return file; 
}
}